RoboHelp Article

Creating Your Own FlashHelp Skins

Amar “AJ” Joseph

Macromedia

Part I: The Structure of FlashHelp Skins

In a previous article, you learned about FlashHelp, an innovative online Help format that Macromedia RoboHelp can generate. FlashHelp combines Macromedia Flash, XML, and HTML into a unique online Help format that is fast-loading, firewall-friendly, and completely consistent across popular browsers and platforms, making it ideal for use with web-based applications.

The real magic of FlashHelp, however, lies in its Flash-based presentation layer, or “skin.” You can completely customize FlashHelp skins to match the look and feel of any application, no matter how unique. FlashHelp skins can include animation, audio, and special effects that offer end users an unrivaled online Help experience. What you can create with FlashHelp skins is limited only by your imagination. See the FlashHelp gallery for some examples of live FlashHelp systems. In this article, the first in a two-part series, you’ll take a close look at the structure of a FlashHelp skin and see how you can begin customizing some of its elements. The second article will cover customizing the elements in more detail.

Requirements

To complete this tutorial, you will need to install the following software:

Macromedia RoboHelp

Macromedia Flash MX 2004

FlashHelp SDK (included with both the full RoboHelp version and RoboHelp free trial)

This tutorial requires a working knowledge of Macromedia Flash but it does not require that you know RoboHelp.

The FlashHelp Runtime

The FlashHelp runtime, as it appears to the end user, consists of four distinct sections, the Toolbar, the Navigation Bar, the Navigation Pane, and the Topic Pane (Figure 1). The Topic Pane is an HTML-based content area that is unaffected by the FlashHelp skin. The other three sections are Flash-based and you can completely customize them. Let’s look at these sections in more detail.

The FlashHelp runtime

Figure 1. The FlashHelp runtime.

Toolbar

The Toolbar (Figure 2), which is located along the top edge of the Help window, contains buttons for the Table of Contents, Index, Search, Glossary, and Print; a full-text Search input field; and a “Powered by FlashHelp” icon. You can customize each of these elements, as well as the background itself with Flash, including adding animation and audio.

Toolbar

Figure 2. Toolbar

Navigation Bar

The Navigation Bar (Figure 3), located under the Toolbar, provides additional elements for navigating the Help system. Likewise, you can customize each of these elements, as well as the background itself with Flash, including adding animation and audio.

Navigation Bar

Figure 3. Navigation Bar

Navigation Pane

The Navigation Pane (Figure 4), located under the Navigation Bar, is a space that displays content and text input fields for several navigation structures, including the Table of Contents, Index, Search, and Glossary. Each navigation structure has its own elements that you can customize, including icons, fonts, and animated text transitions. You can also customize the scrollbar.

Navigation Bar

Figure 4. Navigation Pane

FlashHelp SDK: Using Templates

RoboHelp, the Help authoring software used to generate online Help systems in FlashHelp format, ships with a FlashHelp Skin Development Kit (FlashHelp SDK). Even if you haven't yet purchased RoboHelp, you can use the FlashHelp SDK included in the free RoboHelp trial to follow this article and begin building skins. There are three templates included in the FlashHelp SDK, which automatically installs at C:\Program Files\RoboHelp Office\FlashHelp SDK during RoboHelp installation. View each of the three templates in a browser by opening the appropriate sub-folders (named for the skins, listed below) and double-click start.htm for each template.

Note: I highly recommend that you use one of these templates for your first effort at customizing FlashHelp. Although it is possible to create FlashHelp skins from scratch, beginning with one of the included templates will accelerate your learning and ensure that your customized skin contains all of the required elements for a successful runtime.

Standard: This template is a basic example of a FlashHelp skin. It features a traditional tri-pane layout with straight-edged panes and scrollbars. The buttons feature text labels adjacent to graphical icons. Flash-based effects include various button states, an animated background in the Navigation Pane, and several effects applied to the navigation text.

Curved: This template is similar to the Standard template, but the buttons’ icons appear above the text labels, rather than beside them. Also, the navigation scroll bar is curved, a good example of how FlashHelp lets you “break the rules” of Help design to offer end users a more unique, compelling experience.

Vertical: This template is a vertically oriented skin which displays the Navigation Pane on top and the Topic Pane on the bottom. Help systems using this skin are narrower and use less screen space, so they are more easily embedded directly into a web application or website, should you choose to do so. In this template, the text labels have been removed from the buttons, leaving only icons.

Elements of a FlashHelp Skin

To get a better understanding of exactly what elements comprise a FlashHelp skin, take a look at the contents of the Standard template folder. You’ll find the following:

  • Skin File (FHS): Look for the file titled “Template.fhs”
  • Flash Skin Files (FLA): Twenty-one different FLA files
  • Published Skin Flash Files (SWF): One for each FLA file
  • Start Page (.HTM): The HTML page used to launch and view the skin runtime
  • A collection of other HTML files, SWF files, JavaScript files, and XML files that make up the FlashHelp runtime

Customizing FlashHelp Skins

The customizable elements of a FlashHelp skin are the Flash Skin Files (FLA) and the XML Skin File (FHS). Each of the elements of the Toolbar, Navigation Bar, and Navigation Pane, including the backgrounds, buttons, and so forth, has a corresponding FLA file which you can customize using Macromedia Flash.

You can only customize certain elements of the skin, such as the skin frame layout and audio volume, in the XML Skin File (FHS), a special XML file.

Next, you will learn how to customize some of the simpler elements in a skin. In a subsequent article, you will learn about customizing the other elements and the XML Skin File (FHS).

Basics of Flash Skin Files (FLA)

Each element in a FlashHelp skin, such as a button or icon, is a SWF file published from a FLA file. The number of FLA files in a FlashHelp skin can vary, but for the purposes of this article, you'll use the files in the Standard template, which contains 21 different FLA files. Each FLA file contains one or more movie clips and graphics.

There are several unique characteristics of the FLA files which you must set correctly to achieve a successful FlashHelp runtime. For this reason, it is wise to begin with one of the provided templates when building your own skin. The special characteristics of the FLA files include Components and Instance Names, Labeled Frames, and Positioning.

Components and Instance Names

In Flash, a component is a complex movie clip containing ActionScript code. A FlashHelp skin contains a collection of specialized components featuring ActionScript that is specific to the individual elements that make up the FlashHelp runtime. For example, Toolbar buttons use a Generic FlashHelp Button component.

For each element of a skin to function, you must put an instance of the appropriate component on the Flash Stage with the correct instance name. The files in the three FlashHelp templates in the FlashHelp SDK all have the appropriate components already on the Stage with the correct instance names.

Labeled Frames

Animation in a FlashHelp skin is achieved by having elements transition to various states in response to user actions and messages from the FlashHelp runtime. For example, when a user mouses over a button, the button enters the “over” state. When the mouse moves away, the button returns to its “normal” state. Achieve this effect by coordinating the action of several movie clips that make up the button.

In the FlashHelp Skin Files (FLA), you create transitions between states for a particular element using the Timelines of the movie clips that form that element. Each different state in a movie clip is designated by a labeled frame in the timeline. When an element needs to enter a particular state, the playhead in each movie clip goes to the appropriate labeled frame and play. An ActionScript stop() command at the end of the labeled frame prevents the movie clip from playing into the next state.

The movie clips in the template files all have the appropriate labels and stop commands already in their timelines.

Movie clip Timeline featuring various states.

Figure 5. Movie clip Timeline featuring various states.

Positioning

To position elements correctly during FlashHelp runtime, elements need a common reference point. Do this by positioning most graphics and movie clips at X and Y coordinates 0,0. You can adjust the positioning, but there is a risk of creating disruptions in the FlashHelp runtime by doing so.

All graphics and movie clips in the template files are already positioned correctly, most of them at 0,0.

Customizing Flash Skin Files (FLA)

Now it’s time to roll up your sleeves and dig right into the individual FLA files that make up the Standard template. In this article, I’ll cover the Toolbar and the Navigation Bar. First, note the files that comprise the Toolbar.

Element File Name
Toolbar Background skin_background_tb.fla
Table of Contents Button skin_button_tb_toc.fla
Index Button skin_button_tb_index.fla
Search Button skin_button_tb_search.fla
Glossary Button skin_button_tb_glossary.fla
Print Button skin_button_tb_print.fla
Search Field skin_textfield.fla
Logo Icon skin_button_tb_poweredBy.fla
Toolbar

Figure 6. Toolbar

In this skin, the Toolbar Background and Logo Icon are static images, although you are free to customize them with animation or audio as you like. Note that the Background automatically tiles to fill the required area, so it is advisable to set the size of the Background larger than the size of the end user’s screen.

The Search Field is a more complex FLA that will be discussed in the second article in this two-part series.

Most of the Toolbar consists of buttons. Open the Table of Contents button, skin_button_tb_toc.fla, to see what makes it tick.

Table of Contents Button

Figure 7. Table of Contents Button

The Table of Contents button (like the other Toolbar buttons) contains six separate movie clips: button_mc, left_mc, right_mc, icon_mc, textfield_mc, and label_mc. Left_mc and right_mc are non-scaling clips that always remain on the sides of button_mc, which scale to accommodate the text in textfield_mc and label_mc. Textfield_mc and label_mc are two nested clips used to create the button’s text label.

Note that the button label itself, such as the word “Contents,” is dynamically loaded at runtime, so here the button has the placeholder text of “Label.”

The last movie clip, icon_mc, is the button icon. (Note: Some template buttons only use a graphic rather than a movie clip for the icon.) In this particular button, the icon is positioned on top of left_mc.

The Navigation Bar is very similar in structure to the Toolbar. There are four buttons in the Navigation Bar, laid over one background:

Element File Name
Navigation Bar Background skin_background_nav.fla
Close Navigation Bar Button skin_button_nav_close.fla
Next Topic Button skin_button_nav_next.fla
Previous Topic Button skin_button_nav_previous.fla
Synchronize Table of Contents Button skin_button_nav_sync.fla
Navigation Bar

Figure 8. Navigation Bar

You will find a simpler structure when you examine the buttons that appear on the Navigation Bar. These buttons do not need to scale, so they have fewer movie clips in the FLA files.

Labeled Frames

Most of the movie clips in buttons have labeled frames in their timelines to designate the various button states, as previously described. (One exception is label_mc in the ToolBar buttons, which does not have a Timeline because it is nested inside textfield_mc, which does.) The button states appear in the Timelines as follows:

Labeled frames in Timeline designate button states.

Figure 9. Labeled frames in Timeline designate button states.

Normal: Plays when the button first loads, when the mouse moves off the button, and when the user unselects the button.
Over: Plays when a user mouses over the button
Down: Plays when a user clicks or holds the button
Selected: Plays when the user selects the button
Disabled: Plays when the button is disabled

Note: The Disabled state is primarily used in the Navigation Bar buttons. Although the Disabled state is included in the Timelines in the ToolBar buttons for consistency in design, you never use it because the ToolBar buttons never enter a disabled state.

Procedure for Customizing

You can customize all of the movie clips in the ToolBar and Navigation Bar. Use the following procedure to modify the appearance of a background or button and view the results:

  1. Copy the template folder before beginning to customize.
  2. In the copied template folder, open the template start page (start.htm) in your browser.
  3. In the copied template folder, open the FLA file that you want to edit in Flash.
  4. Customize the movie clip(s) contained in the FLA file.
  5. Preview the FLA file in Flash and generate the SWF file in the same folder to replace the existing SWF file.
  6. Refresh your browser to see the edits in the FlashHelp runtime.

Use this procedure to experiment with different effects. You may want to look at the other two FlashHelp skin templates in the FlashHelp SDK or the FlashHelp gallery for ideas. For example, in the Toolbar buttons in the Vertical template, left_mc, right_mc, textfield_mc, and label_mc have been removed, and icon_mc is positioned on button_mc.

Figure 10. Button from vertical template Toolbar.

Where to Go from Here

In the second article in this two-part series, you’ll learn about customizing the other elements and the XML Skin File (FHS). Until then, practice customizing the Toolbar and Navigation Bar and see what you can come up with. If you would like to share your creation with other FlashHelp designers, you can upload it to the RoboHelp Help Community by clicking the Submit Skin link at http://www.helpcommunity.ehelp.com/skins/flashhelp/skins.asp.


About the author

Amar “AJ” Joseph is a Flash designer and developer with eight years of design experience. He is currently a senior designer at Macromedia, where he works on a variety of design projects ranging from application interfaces to marketing campaigns.